package cn.donting.jme.inspect;

import cn.donting.jme.expansion.attribute.AttributeGroup;
import lombok.Data;

import javax.swing.*;
import java.util.ArrayList;
import java.util.List;

@Data
public class Inspect {

    private JComponent top;
    private List<AttributeGroup> attributeGroups = new ArrayList<>();
    private JComponent bottom;
    /**
     * 释放到 Inspect 时的 transferHandler
     */
    private List<TransferHandler> transferHandlers = new ArrayList<>();
    private Object inspectObj;

    public Inspect(Object inspectObj) {
        this.inspectObj = inspectObj;
    }

    public void addAttributeGroup(AttributeGroup attributeGroup) {
        attributeGroups.add(attributeGroup);
    }

    public void addTransferHandler(TransferHandler transferHandler) {
        transferHandlers.add(transferHandler);
    }

}
